package cn.waqwb.pojo3;

/**
 * @Classname Student
 * @Description TODO
 * @Date 2022/9/6 20:13
 * @Created by Administrator
 */
public class Student {
    private String name;
    private int age;
    //引用类型的成员变量，学生所在的学校
    private School school;

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", school=" + school +
                '}';
    }

    public Student(String name, int age, School school) {
        this.name = name;
        this.age = age;
        this.school = school;
    }
}
